package com.vn.ltedatausagetracking.track.activity;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.widget.SeekBar;
import android.widget.TextView;

import com.vn.ltedatausagetracking.R;
import com.vn.ltedatausagetracking.login.LoginActivity;
public class TrackingActivity extends Activity {
	private SeekBar sbLimitData;
	private TextView tvLimitData;
	private TextView tvDataRange;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.tracking_layout);
		getActionBar().setDisplayHomeAsUpEnabled(false);
		sbLimitData = (SeekBar) findViewById(R.id.sb_limit_data);
		tvDataRange = (TextView) findViewById(R.id.tv_data_range);
		tvLimitData = (TextView) findViewById(R.id.tv_limit_data);

	}

	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		getMenuInflater().inflate(R.menu.tracking, menu);
		return super.onCreateOptionsMenu(menu);
	}

	@Override
	public boolean onOptionsItemSelected(MenuItem item) {
		switch (item.getItemId()) {
		case R.id.action_log_out:
			Intent intent = new Intent(TrackingActivity.this,
					LoginActivity.class);
			intent.putExtra("login", false);
			startActivity(intent);
			finish();
			break;

		default:
			break;
		}
		return super.onOptionsItemSelected(item);
	}

}
